﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using suirui.ZhuMu.Model;
using suirui.ZhuMu.Entity;
using suirui.ZhuMu.Entity.Entities;
using suirui.ZhuMu.Repositories;

namespace suirui.ZhuMu.Services
{
    public interface IUserService : IBaseServices<User>
    {
        Task<APIResult<PageData<User>>> GetUserList(GetListByUserDto paramsDto);

        Task<APIResult<User>> GetUserById(long Id);


        Task<APIResult<User>> GetUserByEmail(string Email);

        Task<APIResult> AddUser(User user);

        Task<APIResult> UpdateUser(User user);

        Task<APIResult> DeleteUser(long Id);

        APIResult<bool> IsExistReMail(string mail);
    }
}
